__author__ = 'YT'

from . import tool
from . import constants as c
from .state import level

def main():
    # 创建一个Control对象
    game = tool.Control()
    # 创建一个字典，键为c.LEVEL，值为level.Level()
    state_dict = {c.LEVEL: level.Level()}
    # 调用Control对象的setup_states方法，传入state_dict和c.LEVEL
    game.setup_states(state_dict, c.LEVEL)
    # 调用Control对象的main方法
    game.main()